package com.souku.finance.application.utils;

import android.app.Activity;

/**
 * Created by Android on 2016/10/15.
 */

public class ChooseWebUtil {

    public static boolean isContain(String url) {
        String[] strings = new String[]{"BoundCardActivity", "RealNameActivity", "doback", "doinvest", "LoginPhoneActivity", "LoginPasswordActivity", "LoginRegisterctivity", "HomeFragment", "ProductFragment", "PersonalFragment", "MoreFragment", "productid="};
        for (int i = 0; i < strings.length; i++) {
            if (url.contains(strings[i])) {
                return true;
            }
        }
        return false;
    }

    public static void startActivity(Activity context, String url) {
        if (url.contains("LoginPhoneActivity") || url.contains("LoginPasswordActivity") || url.contains("LoginRegisterctivity")) {
//            Intent intent=new Intent(context, LoginPhoneActivity.class);
//            context.startActivity(intent);
        }
    }
}
